@extends('layouts.master')

@section('title')
    商品管理——木投网商城管理后台
@stop

@section('app_css')
    <link href="/resource/css/bootstrap.min.css" rel="stylesheet">
    <link rel="stylesheet" type="text/css" href="/resource/css/style.css">
@stop

@section('app_js')
    <script src="/resource/js/jquery-1.11.3.min.js"></script>
    <script src="/resource/js/bootstrap.min.js"></script>
    <script src="/resource/js/jquery.twbsPagination.js"></script>
    <script src="/resource/js/date.js"></script>
    <script src="/resource/js/table-fold.js"></script>
@stop

@section('content')
    @include('common.nav')
<div class="container-fluid">
    <div class="row" id="navLeft">
        @include('common.product_nav')
        <div class="col-lg-10">
            <div class="navbottom">
              <span>您的位置：</span>商品 > 分类管理
            </div>
            <div class="contentNav">
              <ul>
                <li>商品分类</li>
                <li class="btn btn-default active"><a href="/show_goods_cate">管理</a></li>
                <li class="btn btn-default"><a href="/add_goods_cate">新增</a></li>
                <li class="btn btn-default"><a href="index_go.html">导出</a></li>
                <li class="btn btn-default"><a href="index_enter.html">导入</a></li>
                <li class="btn btn-default"><a href="index_tag.html">TAG管理</a></li>
              </ul>
            </div>
            <hr>
              <table class="table table-striped table-bordered bootstrap-datatable datatable table-hover" id="example">
                <thead>
                  <tr>
                    <th></th>
                    <th>分类名称</th>
                    <th>深度</th>
                    <th>操作</th>
                  </tr>
                </thead>
                <tbody>
                @foreach($cates as $k => $cate)
                    <tr>
                        <td><input type="checkbox" name="demo"></td>
                        <th>{{ $cate->cate_name }}</th>
                        <th>{{ $cate->length }}</th>
                        <td><a href="/edit_goods_cate?cate_id={{ $cate->cate_id }}">编辑</a> | <a href="/edit_goods_cate?cate_id={{ $cate->cate_id }}">删除</a></td>
                    </tr>
                @endforeach
                </tbody>
              </table>
            </div>
            {{ $cates->links() }}
        </div>
    </div>
</div>
@stop
